package models

import "time"

type AppSwitch struct {
	ID             uint      `gorm:"primaryKey"`
	Timestamp      time.Time `gorm:"index"`
	AppName        string    `gorm:"size:255"`
	WindowTitle    string    `gorm:"size:255"`
	ExePath        string    `gorm:"size:512"`
	SwitchCount    int       `gorm:"default:1"`
	LastActiveTime time.Time
	UsageDuration  int64 `gorm:"default:0"` // 使用时长（秒）
}
